package org.mspring.mlog.dao;

import org.mspring.mlog.entity.JobLog;
import org.mspring.platform.dao.hibernate.IGenericDao;

/**
 *
 * @author Gao Youbo
 * @since 2014-01-05
 */
public interface JobLogDao extends IGenericDao<JobLog, Long> {
    /**
     * 获取摸个JOB最后的执行时间
     *
     * @param jobId
     * @return
     */
    public JobLog findLastestExecute(long jobId);

    /**
     * 清理某个时间点之前的日志
     *
     * @param date
     */
    public void clearBeforeTime(String date);

    /**
     * 清理日志
     */
    public void clear();
}
